package android.javaClasses;

import android.text.TextUtils;

import java.util.ArrayList;

/**
 * This class contains the player names and the winner of one game
 */
public class Game {
    private ArrayList<String> playerList;
    private String winner;
    private String players;

    /**All the players in an String[]*/
    public Game(ArrayList<String> players, String winner) {
        this.winner = winner;
        this.playerList= players;
    }

    /**All the players in one string, used in DataHelper.selectAll */
    public Game(String players, String winner) {
        this.players = players;
        this.winner = winner;

    }

    public String getPlayers() {
        return players;
    }

    public void setPlayers(String players) {
        this.players = players;
    }

    public String getWinner() {
        return winner;
    }

    public void setWinner(String winner) {
        this.winner = winner;
    }

    public ArrayList<String> getPlayerList() {
        return playerList;
    }

    public void setPlayerList(ArrayList<String> playerList) {
        this.playerList = playerList;
    }
}
